package com.ct.model;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ValidVO {
    private Integer id=0;

    @Length(min = 6, max = 12, message = "appId长度必须位于6到12之间")
    private String appId="appid111";

    @NotBlank(message = "name->名字为必填项")
    private String name;

    @Email(message = "请填写正确的邮箱地址")
    private String email;

    private Long sex;

    @NotEmpty(message = "级别不能为空")
    private String level;
}